package com.lftea.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.flex.remoting.RemotingInclude;
import org.springframework.stereotype.Service;

import com.lftea.dao.IProductClassDAO;
import com.lftea.po.ProductClass;
import com.lftea.service.IProductClassService;

@Service("productClassServiceImpl")
@RemotingDestination
public class ProductClassServiceImpl implements IProductClassService {

	@Resource(name = "productClassDAOImpl")
	private IProductClassDAO productClassDAOImpl;
	
	@RemotingInclude
	public List<ProductClass> findAll() {		
		return productClassDAOImpl.findAll();
	}

	@RemotingInclude
	public ProductClass findById(long productClassId) {
		return productClassDAOImpl.findById(productClassId);
	}

	@RemotingInclude
	public void remove(ProductClass productClass) {
		productClassDAOImpl.remove(productClass);
	}

	@RemotingInclude
	public void save(ProductClass productClass) {
		productClassDAOImpl.save(productClass);
	}

	@RemotingInclude
	public void add(ProductClass productClass) {
		productClassDAOImpl.add(productClass);
	}

	@RemotingInclude
	public void update(ProductClass productClass) {
		save(productClass);
	}

	@RemotingInclude
	public List<ProductClass> find(ProductClass productClass) {		
		return productClassDAOImpl.find(productClass);
	}

}
